﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class SkillButton : MonoBehaviour, IPointerClickHandler
    
{
    [SerializeField]
    private string spellname;
    public void OnPointerClick(PointerEventData eventData)
    {
        if (eventData.button == PointerEventData.InputButton.Left)
        {
            //take spell
            handScript.MyInstance.takeMovable(skillBook.MyInstance.getSkill(spellname));
        }
    }

}
